const http = require('http');
const server = http.createServer();

server.on('request',(req) => {
  const str = `Your request url is ${req.url}, and requeset method is ${req.method}`;
  console.log(str);
})

server.listen(80,() => {
  console.log("http server running at http://127.0.0.1:80");
})